const express = require('express');
const router = express.Router();
const scriptSourceController = require('../controllers/scriptSourceController');

// 获取所有脚本来源详情
router.get('/', scriptSourceController.getAllScriptSources);

// 添加新的脚本来源
router.post('/', scriptSourceController.addScriptSource);

// 更新脚本来源
router.put('/:id', scriptSourceController.updateScriptSource);

module.exports = router;